import request from '@/utils/request';


export async function fetchUserList(params) {
  return request(
    `/api/user?load=streets&page=1&limit=${params.limit}&offset=${params.offset}${params.search}`,
  );
}

export async function fetchUser(params) {
  return request(`/api/user?query=id:${params.id}`);
}

export async function fetchStreets() {
  return request(`/api/street`);
}



export async function fetch(params) {
  return request(`/api/scan?page=1&load=report,gateway&limit=${params.limit}&offset=${params.offset}&query=report.id:${params.id}${params.search}`);
}

